﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ViewTest.aspx.cs" Inherits="Teacher_Default" %>

<%@ Register TagPrefix="TestViewControlTag" TagName="TestViewControl" Src="~/Teacher/TestViewControl.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Teacher:
        Display a Test:
    </h3>
    Select a test: &nbsp;<asp:DropDownList ID="ddListTestNumbers" runat="server" DataSourceID="SqlDataSource1"
        DataTextField="Title" DataValueField="Id">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dbConnectionString %>"
        SelectCommand="SELECT [Title], [Id] FROM [Assessments]"></asp:SqlDataSource>
    <asp:Button ID="btnFetchHTML" runat="server" Text="Get HTML" OnClick="btnFetchHTML_Click" Visible="false" />
    <asp:Button ID="btnFetchXML" runat="server" OnClick="btnFetchXML_Click" Text="Get XML" Visible="false" />
    <asp:Button ID="btnFetchHTMLwithAnswers" runat="server" OnClick="btnFetchHTMLwithAnswers_Click"
        Text="Get HTML with Answers"  Visible="false" />
    <asp:Button ID="btnFetchXMLwithAnswers" runat="server" OnClick="btnFetchXMLwithAnswers_Click"
        Text="Get XML with Answers" Visible="false" />
    <asp:Button ID="btnFetchFormattedForTesting" runat="server" OnClick="btnFetchFormattedForTesting_Click"
        Text="Display Test" />
    <br />
    
    <asp:Label ID="fetchedTestLabel" runat="server"></asp:Label>

    <TestViewControlTag:TestViewControl ID="TestViewControl" runat="server" />
</asp:Content>
